<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>08文本的样式2</title>
    <style>
        .box1{
            font-size: 50px;
            /* 
            text-decoration 设置文本修饰
                可选值：
                    none 什么都没有
                    underline 下划线
                    line-through 删除线
                    overline 上划线
            */
            text-decoration: line-through red dotted;
        }
        .box2{
            width: 200px;
            /* 
            white-space 设置网页如何处理空白
                可选值：
                    normal 正常
                    nowrap 不换行
                    pre 保留空白（打几个空格就出来几个空格）
            */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
    <div class="box2">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil officiis obcaecati rem perferendis, ullam suscipit nisi ad consectetur exercitationem maxime nulla molestiae esse, accusantium aliquam non soluta sequi omnis amet!</div>
    <div class="box1" >
        今天天气真不错
    </div>
</body>
</html>